package com.ywm.dao.user.impl;

import com.ywm.dao.user.UserDao;
import com.ywm.model.user.User;
import com.ywm.mapper.user.UserMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ywm.dao.common.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class UserDaoImpl  extends BaseDaoImpl<User> implements UserDao {

	@Autowired
	private UserMapper userMapper;

	@Override
	public int countUser() {
		return userMapper.countUser();
	}

	@Override
	public List<User> findUserList(Integer age) {
		return userMapper.findUserList(age);
	}
}
